package com.naughty.shopapi.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@TableName(value = "Orders", autoResultMap = true)
public class Orders  implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer user_id;
    private String order_no;
    private Integer amount;
    private Integer address_id;
    private Integer status;
    private String express_type;
    private String express_no;
    private Date pay_time;
    private String pay_type;
    private String trade_no;
    @TableField(fill = FieldFill.INSERT)
    private Date created_at;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated_at;


}
